﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelperInfoSearchWindow.ascx.cs" Inherits="ExaminationSys.View.News.HelperInfoSearchWindow" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<ext:Window 
    ID="ExpressInfoSearch" 
    runat="server" 
    Icon="Group" 
    Title="公共信息(信息快递)高级查询"
    Width="330" 
    Height="180" 
    AutoShow="false" 
    Modal="true" 
    Hidden="true"
    Layout="Fit">
    <Items>       
                <ext:FormPanel 
                    ID="NewsSearchPanel" 
                    runat="server" 
                    Icon="ChartOrganisation"
                    DefaultAnchor="95%"
                    Padding="5"
                    BodyPadding="10">
                    <Items>
                        <ext:TextField ID="ExpressInfoTitle" Name="NewsTitle" runat="server" FieldLabel="标题" /> 
                        <ext:RadioGroup 
                            ID="RadioGroupPub" 
                            runat="server" 
                            FieldLabel="是否发布"                             
                            Padding="5"
                            >
                            <Items>
                                <ext:Radio ID="RadioAll" runat="server" BoxLabel="全部" Checked="true" />
                                <ext:Radio ID="RadioYes" runat="server" BoxLabel="是"  />
                                <ext:Radio ID="RadioNo" runat="server" BoxLabel="否" />
                            </Items>
                        </ext:RadioGroup>   
                        <ext:RadioGroup 
                            ID="RadIsRecommend" 
                            runat="server" 
                            FieldLabel="是否推荐"
                            Padding="5"
                            > <%--Cls="x-check-group-alt"--%>
                            <Items>
                                <ext:Radio ID="RadRecommendAll" runat="server" BoxLabel="全部" Checked="true" />
                                <ext:Radio ID="RadRecommendY" runat="server" BoxLabel="是"/>
                                <ext:Radio ID="RadRecommendN" runat="server" BoxLabel="否" />
                            </Items>
                        </ext:RadioGroup>    
                    </Items>
                </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SearchButton" runat="server" Text="查询" Icon="Find">
            <DirectEvents>
                <Click OnEvent="SearchExpressInfo" Failure="Ext.MessageBox.alert('process failed', 'Error during ajax event');">
                </Click>
            </DirectEvents>
            
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                 <Click Handler="#{ExpressInfoSearch}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>